var express=require("express");
const examController = require("../controllers/examController");
var router=express.Router();



router.get("/getQuestionBanks",examController.getQuestionBanks); //获取所有题库
router.get("/getQuestionBankCount",examController.getQuestionBankCount); //获取默认题库的题目总数
router.post("/delQuestionBank",examController.delQuestionBank); //删除题库
router.post("/editIsBan",examController.editIsBan); //修改题库是否禁用
router.post("/editPublish",examController.editPublish); //修改题库是否发布
router.post("/addQuestion",examController.addQuestion);//添加题库
router.post("/addTopic",examController.addTopic);//默认题库添加题目
router.get("/queryAllQuestion",examController.queryAllQuestion);//默认题库的试题列表查询
router.post("/TopicIsPublish",examController.TopicIsPublish);//默认题库题目的发布
router.post("/delQUestion",examController.delQUestion);//默认题库题目的删除
router.post("/TopicIsBan",examController.TopicIsBan);//默认题库的恢复与禁用
router.get("/queryAllQuestionChecks",examController.queryAllQuestionChecks);//默认题库的试题列表获取当前页面满足勾选的复选框的默认题库试题的试题列表
router.get("/getQuestionDetails",examController.getQuestionDetails);//查询默认题库试题的试题列表的题目详情
router.get("/getQuestionOptions",examController.getQuestionOptions);//默认题库试题详情根据题目Id查询题目选项
module.exports=router;